package com.OA.service.impl;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.OA.dao.Log_CY_mapper;
import com.OA.dao.SignIn_CY_mapper;
import com.OA.entity.DepartMentName;
import com.OA.entity.Log;
import com.OA.entity.LogComment;
import com.OA.entity.LogType;
import com.OA.entity.SignIn;
import com.OA.entity.User;
import com.OA.entity.UserDept_Vo;
import com.OA.service.Log_CY_service;
import com.OA.service.SignIn_CY_service;
import com.OA.util.Page;

@Service
public class SignIn_CY_serviceImpl implements SignIn_CY_service{

	@Autowired
	private SignIn_CY_mapper signMapper;
	
	/**
	 * 加载用户的出勤记录
	 * @param map
	 * @return
	 */
	public Page<SignIn> loadSignIn(Map map){
		List<SignIn> list = signMapper.loadSignIn(map);
		int pageNo = (int) map.get("pageNo");
		int pageSize = (int) map.get("pageSize");
		int total = signMapper.signInCount(map);
		Page<SignIn> page = new Page<SignIn>(pageNo, pageSize, total, list);
		return page;
	}





}
